

<%@ page import="com.consorzioimpresa.resuite.domain.Prodotto" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="springSecurityUI" />
        <g:set var="entityName" value="${message(code: 'prodotto.label', default: 'Prodotto')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${prodottoInstance}">
            <div class="errors">
                <g:renderErrors bean="${prodottoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="durataA"><g:message code="prodotto.durataA.label" default="Durata A" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'durataA', 'errors')}">
                                    <g:datePicker name="durataA" precision="day" value="${prodottoInstance?.durataA}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="durataDa"><g:message code="prodotto.durataDa.label" default="Durata Da" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'durataDa', 'errors')}">
                                    <g:datePicker name="durataDa" precision="day" value="${prodottoInstance?.durataDa}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="finalita"><g:message code="prodotto.finalita.label" default="Finalita" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'finalita', 'errors')}">
                                    <g:select name="finalita.id" from="${com.consorzioimpresa.resuite.domain.Finalita.list()}" optionKey="id" value="${prodottoInstance?.finalita?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="ltv"><g:message code="prodotto.ltv.label" default="Ltv" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'ltv', 'errors')}">
                                    <g:textField name="ltv" value="${fieldValue(bean: prodottoInstance, field: 'ltv')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nome"><g:message code="prodotto.nome.label" default="Nome" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'nome', 'errors')}">
                                    <g:textField name="nome" value="${prodottoInstance?.nome}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="provviggione"><g:message code="prodotto.provviggione.label" default="Provviggione" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'provviggione', 'errors')}">
                                    <g:textField name="provviggione" value="${fieldValue(bean: prodottoInstance, field: 'provviggione')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="provviggionePercentuale"><g:message code="prodotto.provviggionePercentuale.label" default="Provviggione Percentuale" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'provviggionePercentuale', 'errors')}">
                                    <g:textField name="provviggionePercentuale" value="${fieldValue(bean: prodottoInstance, field: 'provviggionePercentuale')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="rapportoRataReddito"><g:message code="prodotto.rapportoRataReddito.label" default="Rapporto Rata Reddito" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'rapportoRataReddito', 'errors')}">
                                    <g:textField name="rapportoRataReddito" value="${fieldValue(bean: prodottoInstance, field: 'rapportoRataReddito')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="spread"><g:message code="prodotto.spread.label" default="Spread" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'spread', 'errors')}">
                                    <g:textField name="spread" value="${fieldValue(bean: prodottoInstance, field: 'spread')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tipoProdotto"><g:message code="prodotto.tipoProdotto.label" default="Tipo Prodotto" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'tipoProdotto', 'errors')}">
                                    <g:select name="tipoProdotto.id" from="${com.consorzioimpresa.resuite.domain.TipoProdotto.list()}" optionKey="id" value="${prodottoInstance?.tipoProdotto?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tipoTasso"><g:message code="prodotto.tipoTasso.label" default="Tipo Tasso" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: prodottoInstance, field: 'tipoTasso', 'errors')}">
                                    <g:select name="tipoTasso.id" from="${com.consorzioimpresa.resuite.domain.TipoTasso.list()}" optionKey="id" value="${prodottoInstance?.tipoTasso?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
